package com.jatosoft.poc.priceinquiry.core.domain;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import com.google.appengine.api.datastore.Key;

@Entity
public final class PriceRecord  extends BaseDomain{

	private static final long serialVersionUID = 2783214817510396804L;
	Double price;
	Date priceDate;
	String location;
	public Double getPrice() {
		return price;
	}
	public void setPrice(Double price) {
		this.price = price;
	}
	public Date getPriceDate() {
		return priceDate;
	}
	public void setPriceDate(Date priceDate) {
		this.priceDate = priceDate;
	}
	public String getLocation() {
		return location;
	}
	public void setLocation(String location) {
		this.location = location;
	}
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
	public Key getId() {
		return id;
	}

	public void setId(Key id) {
		this.id = id;
	}
	@Override
	public String toString() {
		return "PriceRecord [price=" + price + ", priceDate=" + priceDate
				+ ", location=" + location + "]";
	}
}